package com.bishe.psy.dao;


import com.bishe.psy.model.LikeArticle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LikeArticleMapper {

    //根据文章id 用户id和用户身份查询点赞记录表
    LikeArticle selectLikeById(@Param("articleId")Long articleId, @Param("userId")Long userId,
                               @Param("currentIdentity")Long currentIdentity);

    //新增一条点赞记录
    int insert(LikeArticle row);

    //根据id修改点赞表内容
    int updateByPrimaryKeySelective(LikeArticle row);

    //根据id查询记录
    LikeArticle selectByPrimaryKey(Long id);

}